Get the last location for each of the requested assetNumbers

Because multiple assetNumbers can be requested, the response will indicate the success status of the Asset and if the Asset is found, its respective location.

For each distinct requested Asset, the response will have a Status of

  • 200 if the assetNumber was found for the account
  • 400 if the assetNumber was invalid (empty, whitespace only, or longer than 96 characters)
  • 404 if the assetNumber was not found for the account

For each successfully found Asset of assetNumbers, the last location will have a Status of

  • 200 if the last location was successfully found for the respective Asset
  • 404 if no last location was found (within the account Data Plan) for the respective Asset
  • 500 if something else went wrong while fetching the last location of the Asset

Notes:

  • A location may be not found (location Status 404) if the Asset has not yet reported a location, or if it has but the last time it reported was outside the DataPlan of the account
  • Duplicate assetNumbers are ignored. assetNumbers are compared case-insensitively and ignoring trailing whitespace
  • assetNumbers may have a maximum of 50 entries per request, counted before duplicates are removed. If this is exceeded, a 400 response will be returned
  • The order of the response items is not guaranteed to match the order of the request
  • If the asset or location lookup fails for the whole request, a 500 response is returned instead of per-Asset statuses

Sample request:

POST /ast/v1/assets/locations
[
   "A10001",
   "A10002",
   "X99999"
]
post
https://api.us.vzconnect.com/ast/v1/assets/locations

Body

A list of up to 50 assetNumbers for which to retrieve the last location. Duplicate assetNumbers are ignored.

array[string]

Response

If the request was successful

AssetNumberstringrequired

The AssetNumber called in the request, returned within the response.

Example:A10001

ContentResourceobject

The last location lookup result. null unless Status is 200.

Show Child Parameters
Statusinteger(int32)

The status code indicating whether the AssetNumber could be found. 200 if found; 400 if the AssetNumber is invalid (empty, whitespace only, or longer than 96 characters); 404 if no Asset with that AssetNumber exists in the account.

Allowed values:200400404

 

Get the last location of the assetNumber

Extracts the last recorded location of a specified asset.

Notes:

  • A location may be not found (204 No Content) if the Asset has not yet reported a location, or if it has but the last time it reported was outside the DataPlan of the account

Sample request:

GET /ast/v1/assets/A10001/location
get
https://api.us.vzconnect.com/ast/v1/assets/{assetNumber}/location

Path Parameters

assetNumberstringrequired

The AssetNumber for which to get the last location.

Example:A10001

Response

If the request was successful

AssetGeoLocation

Designed for Asset last Location requests
/v1/assets/{assetnumber}/location

GeofenceNamestring

Geofence is a place configured within a REVEAL account to easily identify particular locations. An empty string if the GPS plot does not occur within a Geofence.

Example:VZC

Addressobject

Address contains the global standards for address components

Show Child Parameters
DeviceTimeZoneOffsetinteger | null(int32)

The GPS device’s current time zone compared to UTC

Example:12

DeviceTimeZoneUseDSTboolean

If the REVEAL account is set to acknowledge Daylight Savings Time then this value will return as TRUE. REVEAL accounts in the United States are automatically defaulted to True.

Example:false

Latitudenumber(double)

The latitude of the last location

Example:-41

Longitudenumber(double)

The longitude of the last location

Example:162

UpdateUTCstring(date-time)

The date and time stamp when the GPS plot was received (YEAR-MONTH-DAY T HOURS-MINUTES-SECONDS)

Example:2020-05-07T19:56:06

 

ContentResource[AssetGeoLocation]

object

A data transfer object wrapper used to distinguish an Asset resource from that Asset’s Location resource.

Valueobject

The last location of the Asset. null unless Status is 200.

Show Child Parameters
Statusinteger(int32)

The status code of the Location. 200 indicates a last location was successfully found for the Asset; 404 indicates no last location was found (within the account Data Plan); 500 indicates something else went wrong.

Allowed values:200404500

Example

Address

object

Address contains the global standards for address components

AddressLine1string

Location specific identification such as a house number

Example:2 Victoria Street, Christchurch Central City, Christchurch 8013, New Zealand

AddressLine2string

Additional information to identify location such as an apartment number

Localitystring

‘City’ is presented to the customer as ‘Locality’

Example:Christchurch

AdministrativeAreastring

‘State’ is presented to the customer as ‘AdministrativeArea’

Example:Canterbury

PostalCodestring

Example:8013

Countrystring

Example:NZL

Example

AssetContentResource[AssetGeoLocation]

object
AssetNumberstringrequired

The AssetNumber called in the request, returned within the response.

Example:A10001

ContentResourceobject

The last location lookup result. null unless Status is 200.

Show Child Parameters
Statusinteger(int32)

The status code indicating whether the AssetNumber could be found. 200 if found; 400 if the AssetNumber is invalid (empty, whitespace only, or longer than 96 characters); 404 if no Asset with that AssetNumber exists in the account.

Allowed values:200400404

Example